﻿using System;
using Orid.Management.Statistics.Tools.Decomposition.Config;

namespace Orid.Management.Statistics.Tools.Decomposition.Data
{
    class AccountOnline : Account
    {
         string connectString, tableName;

         public AccountOnline()
        {

            connectString =Setting.SettingInstance.DBAddress_Online;
            //[Accounts]
            tableName = "[FutureManagement_Masters].[FutureMa].[Accounts]";
        }

         public override string GetLoginName(int? accountID)
         {
             string LoginName = string.Empty;
             try
             {

                 if (accountID == null)
                 {
                     return null;
                 }

                 return GetLoginName(accountID, connectString, tableName);

             }
             catch (System.Data.SqlClient.SqlException ex)
             {
                 throw (new Exception(ex.Message));
             }

         }
    }
}
